﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucUserProfile.ascx.cs"
    Inherits="Billing.ucUserProfile" %>
<%@ Register Src="~/Controls/ucHighlight.ascx" TagName="ucHighlight" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/ucInProgress.ascx" TagName="ucInProgress" TagPrefix="uc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:UpdatePanel runat="server" ID="updatePanel3">
    <ContentTemplate>
        <uc1:ucHighlight ID="ucHighlight1" runat="server" />
    </ContentTemplate>
</asp:UpdatePanel>
<asp:Panel ID="PanelDetails" runat="server">
    <table class="nTable">
        <tr>
            <td align="right" class="style2">
                Login ID :
            </td>
            <td>
                <asp:TextBox ID="txtLoginId" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                NRIC :
            </td>
            <td>
                <asp:TextBox ID="txtNRIC" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                Display Name :
            </td>
            <td>
                <asp:TextBox ID="txtDisplayName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                Address :
            </td>
            <td>
                <asp:TextBox ID="txtAddress01" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                Validity Date :
            </td>
            <td>
                <asp:TextBox ID="txtAddress02" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                Postal Code :
            </td>
            <td>
                <asp:TextBox ID="txtPostCode" runat="server" MaxLength="7"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                User Group :
            </td>
            <td>
                <asp:DropDownList ID="ddlUserType" runat="server" OnSelectedIndexChanged="ddlUserType_SelectedIndexChanged"
                    AutoPostBack="True" CssClass="ui-widget">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                Office Phone Number :
            </td>
            <td>
                <asp:TextBox ID="txtPrimaryPhone" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                Mobile Number :
            </td>
            <td>
                <asp:TextBox ID="txtSecondaryPhone" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                Fax Number :
            </td>
            <td>
                <asp:TextBox ID="txtFaxNumber" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                Email :
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="PanelKeyManager" runat="server" Visible="false">
                            <table>
                                <tr>
                                    <td align="right" class="style2">
                                        Agency:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlAgency" runat="server" OnSelectedIndexChanged="ddlAgency_SelectedIndexChanged"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="style2">
                                        BU :
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlBU" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ddlUserType" EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                Status :
            </td>
            <td>
                <asp:RadioButtonList ID="RListIsActive" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Selected="True" Value="True">Active</asp:ListItem>
                    <asp:ListItem Value="False">Non-Active</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="xPrimaryKey" runat="server" Value="0" />
    <asp:HiddenField ID="xDialogID" runat="server" Value="" />
    <asp:HiddenField ID="xPassword" runat="server" Value="" />
    <asp:HiddenField ID="xIsOnlyKM" runat="server" Value="False" />
    <asp:UpdatePanel ID="ActionPanel" runat="server">
        <ContentTemplate>
        <div align="center">
            <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
            <asp:Button ID="btnDelete" runat="server" Text="Delete" Visible="True"
                OnClick="btnDelete_Click" />
            <asp:ConfirmButtonExtender ID="btnDelete_ConfirmButtonExtender" runat="server" ConfirmText="Are you sure want to delete?"
                TargetControlID="btnDelete">
            </asp:ConfirmButtonExtender>
            <asp:Button ID="btnReset" runat="server" Text="Reset" OnClientClick="$(function(){$('dialogUpdate').dialog('close');});return false;"
                OnClick="btnReset_Click" />
            <asp:Timer ID="TimerCloseIt" runat="server" Enabled="False" Interval="1000" OnTick="TimerCloseIt_Tick">
            </asp:Timer>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="ActionPanel">
        <ProgressTemplate>
            <uc2:ucInProgress ID="ucInProgress" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <br />
    <br />
</asp:Panel>
